package com.echo.code.spring.mail;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Description
 *
 * @author baiyp
 * @version 1.0.0
 * @date 2019/04/23
 */
public class MailClient {

  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("mail.xml");
    MailSender mailSender = context.getBean(MailSender.class);
    mailSender.sendMail();
    context.close();
  }
}
